//
//  AXFAboutAuthorController.m
//  AXFEightGroup
//
//  Created by hgj on 2016/12/26.
//  Copyright © 2016年 ya. All rights reserved.
//

#import "AXFAboutAuthorController.h"

@interface AXFAboutAuthorController ()

@property (weak, nonatomic) IBOutlet UIButton *ckickButton;
@property (nonatomic, strong) CALayer *redLayer;

@end

@implementation AXFAboutAuthorController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)clickAuthor:(UIButton *)sender {
    NSString *message = @"让你点你就点,你是不是傻子";
    
    UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil message:message preferredStyle:(UIAlertControllerStyleAlert)];
    
    UIAlertAction *action = [UIAlertAction actionWithTitle:@"是" style:(UIAlertActionStyleDefault) handler:^(UIAlertAction *action) {
        _ckickButton.titleLabel.text = @"我是傻子";
        
        
    }];
    
    UIAlertAction *cancel = [UIAlertAction actionWithTitle:@"不是" style:(UIAlertActionStyleCancel) handler:^(UIAlertAction *action){
        _ckickButton.titleLabel.text = @"傻子,莫要狡辩";
    }];
    [alert addAction:action];
    [alert addAction:cancel];
    [self showDetailViewController:alert sender:nil];
}



@end
